﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Sistema_Totem.Logica.Clases;

namespace Sistema_Totem.Vista.CU
{
    public partial class ModificarCU : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                GridViewModificarCU.DataSource = CargarCU();
                GridViewModificarCU.DataBind();
            }
        }

        protected void GridViewModificarCU_SelectedIndexChanged(object sender, EventArgs e)
        {
        }
        protected void GridViewModificarCU_PageIndexChanging(object sender, GridViewPageEventArgs e)
        {
        }

        protected void GridViewMOdificarCU_SelectedIndexChanged1(object sender, EventArgs e)
        {

        }

        protected void GridViewConsultarCaso_RowCommand(Object sender, GridViewCommandEventArgs e)
        {
            Response.Redirect("ModificarCU2.aspx");

        }

        protected List<CasoDeUso> CargarCU()
        {

            List<CasoDeUso> casoUsos = new List<CasoDeUso>();


            for (int i = 1; i < 20; i++)
            {

                CasoDeUso cu = new CasoDeUso

                {


                    Id = i,
                    Nombre = "CasoUso " + i,
                   



                };

                casoUsos.Add(cu);

            }

            return casoUsos;

        }
    }
}